package com.service.thirddatacenter.hpool.mapper;

import com.service.thirddatacenter.hpool.model.entity.MiningRecordEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * 收益记录
 *
 * @date 2021-06-08 15:41:03
 */
@Mapper
public interface MiningRecordMapper extends BaseMapper<MiningRecordEntity> {

	/**
	 * @Description: 统计商户某天的累计收益
	 * @Author: ty
	 * @Date: 2021/6/22 15:34
	 * @param: [accountIds, type, someday]
	 * @return: java.math.BigDecimal
	 **/
	BigDecimal getLastIncomeByAccountId(@Param("accountId") Integer accountId,@Param("type") String type);

}
